/*
 * @Author: your name
 * @Date: 2021-12-09 10:12:30
 * @LastEditTime: 2022-04-28 17:11:13
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \AROperationManager_web\src\api\tools.js
 */
// 工具类

class toolClass {
  constructor () {

  }

  getRandomNum () { // 产生一个随机数
    let myTime = new Date()
    return (myTime.getTime() + (parseInt(Math.random() * 50000).toString()))
  }

  getErrorTip (text) { // 返回错误提示
    return {
      flag: true,
      errorText: text
    }
  }

  getSuccessTip (text) { // 返回成功提示
    return {
      flag: true,
      successText: text
    }
  }

}

let tool = new toolClass()
export default tool
